package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the solution database table.
 * 
 */
@Entity
@NamedQuery(name="Solution.findAll", query="SELECT s FROM Solution s")
public class Solution implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="sol_id")
	private int solId;

	@Column(name="sol_content")
	private String solContent;

	@Column(name="sol_feedback")
	private String solFeedback;

	@Column(name="sol_name")
	private String solName;

	@Temporal(TemporalType.DATE)
	@Column(name="sol_submission")
	private Date solSubmission;

	//bi-directional many-to-one association to Affix
	@ManyToOne
	@JoinColumn(name="sol_annex")
	private Affix affix;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cus_id")
	private Customer customer;

	//bi-directional many-to-one association to Opportunity
	@ManyToOne
	@JoinColumn(name="opp_id")
	private Opportunity opportunity;

	public Solution() {
	}

	public int getSolId() {
		return this.solId;
	}

	public void setSolId(int solId) {
		this.solId = solId;
	}

	public String getSolContent() {
		return this.solContent;
	}

	public void setSolContent(String solContent) {
		this.solContent = solContent;
	}

	public String getSolFeedback() {
		return this.solFeedback;
	}

	public void setSolFeedback(String solFeedback) {
		this.solFeedback = solFeedback;
	}

	public String getSolName() {
		return this.solName;
	}

	public void setSolName(String solName) {
		this.solName = solName;
	}

	public Date getSolSubmission() {
		return this.solSubmission;
	}

	public void setSolSubmission(Date solSubmission) {
		this.solSubmission = solSubmission;
	}

	public Affix getAffix() {
		return this.affix;
	}

	public void setAffix(Affix affix) {
		this.affix = affix;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Opportunity getOpportunity() {
		return this.opportunity;
	}

	public void setOpportunity(Opportunity opportunity) {
		this.opportunity = opportunity;
	}

}